// 统一请求路径前缀在libs/axios.js中修改
import { getRequest, postRequest, putRequest, deleteRequest } from '@/libs/axios';

//获取分佣管理佣金管理列表
export const getCommissionList = (params) => {
  return getRequest(`/whitebar/commission/getByPage`, params)
}

//获取分佣管理费率设置列表
export const getRateSettingList = (params) => {
  return getRequest(`/whitebar/rateSetting`, params)
}


// 添加费率设置
export const addRateSetting = (params) => {
  return postRequest("/whitebar/rateSetting/add", params);
};
// 编辑费率设置
export const editRateSetting = (id, params) => {
  return putRequest(`/whitebar/rateSetting/update/${id} `, params);
};
// 删除费率设置
export const delRateSetting = (ids, params) => {
  return deleteRequest(`/whitebar/rateSetting/delete/${ids}`, params);
};